<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>弹窗等待</title>
 <link href="<%=path %>/hplus/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="<%=path %>/hplus/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="<%=path %>/hplus/css/animate.min.css" rel="stylesheet">
    <link href="<%=path %>/hplus/css/style.min862f.css?v=4.1.0" rel="stylesheet">
        <link href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/gh/bootcdn/BootCDN/ajax/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/font-awesome.min93e3.css?v=4.4.0"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/plugins/datapicker/datepicker3.css">
<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/style.min.css"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet">
<style type="text/css">
body {font-size: 25px;padding: 20px;}
#condition{line-height: 34px;}
#condition .radio{line-height: 21px;}
#condition>div.row{margin-bottom: 8px;}
#condition a{color: black;margin-right: 12px;}
#condition a.cfoucs{color: #1ab394;font-weight: bold;}
.radio-primary input[type="radio"] + label::after {background-color: #1ab394;}
.radio-primary input[type="radio"]:checked + label::after {background-color: #1ab394;}
.radio-primary input[type="radio"]:checked + label::before {border-color: #1ab394;}
.ui-dialog-footer button.ui-dialog-autofocus{background-color: #18a689;border-color: #18a689;}
ol{
  		list-style:none;
  	}
  	li{
  		list-style:none;
  	}
form>div.row{margin-bottom: 16px;}
a.btn-rounded{margin-right: 16px;}
a:hover{
	background-color:red;
	color:red;
}
</style>
</head>
<body class="gray-bg">
<div class="container-fluid" style="padding-top: 40px;background-color: white;font-size: 25px;">
		<div class="row">
			<div class="col-sm-4"></div>
			<label class="col-sm-5 control-label">拦截弹窗等待中……请勿关闭</label>
			<div class="col-sm-3"></div>
		</div>
</div>
</body>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
	<script src="https://cdn.jsdelivr.net/gh/bootcdn/BootCDN/ajax/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.16/js/jquery.dataTables.min.js"></script>
	<script src="<%=path%>/hplus/js/plugins/suggest/bootstrap-suggest.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
    <script src="<%=path%>/hplus/js/plugins/sweetalert/sweetalert2.min.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/artDialog/7.0.0/dialog-plus.js"></script>
	<script type="text/javascript" src="<%=path%>/js/marketing/public.js"></script>
	<script src="<%=path%>/hplus/js/plugins/iCheck/icheck.min.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/plugins/iCheck/custom.css"/>	
<script type="text/javascript">
var path = "<%=path%>";
var access_token=$.cookie('access_token');
var cid=$.cookie('cid');
var uid=$.cookie('uid');
$(":checkbox").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",});
function getChange(){
	var url=path+"/ser/order/getChange";
	$.post(url,{
		"access_token" : access_token,
		"cid" : cid,
		"uid" : uid},
		function(data){
		 if(data!=null&&data!=""){
			 var json=JSON.parse(data);
			 getOrder(json.id);
		 }       		
	});
}
function getOrder(id){
	window.open(path+"/ser/ui/orderDetail?id="+id);
}	
setInterval(getChange,5000);

</script>
</html>